package top.rish.converter.core.desensitized;

import top.rish.converter.core.base.DesensitizedAction;

public class PhoneDesensitizedAction implements DesensitizedAction<String> {
    @Override
    public  String  desensitized(String string) {
        return  string
                .replaceAll(
                        "(^\\w{3}).*(\\w{4}$)","$1****$2");
    }
}
